import {Routes} from '@angular/router';

import { MemberMainComponent } from './member-main/member-main.component';
import { LoginComponent } from './login/login.component';
import { RegistComponent } from './regist/regist.component';
import { ProductComponent } from './product/product.component';
import { CreditComponent } from './credit/credit.component';
import { ProductDetailsComponent } from './product-details/product-details.component';
import { ClauseComponent } from './clause/clause.component';
import { RoleComponent } from './role/role.component';
import { ShoumingComponent } from './shouming/shouming.component';


export const MemberRoutes: Routes = [
  {
    path: '',
    component: MemberMainComponent,
    children: [{
      path: '',
      redirectTo: '/member/login',
      pathMatch: 'full'
    }, {
      path: 'login',
      component: LoginComponent
    }, {
      path: 'regist',
      component: RegistComponent
    }, {
      path: 'product',
      component: ProductComponent
    }, {
      path: 'credit',
      component: CreditComponent
    },{
      path: 'prodcutDetails',
      component: ProductDetailsComponent
    },{
      path:'clause',
      component: ClauseComponent
    },{
      path:'role',
      component: RoleComponent
    },{
      path:'shouming',
      component: ShoumingComponent
    }]
  }
];
